//
//  UIButton+Block.h
//  SharedGym
//
//  Created by Jiang on 2017/4/19.
//
//

#import <UIKit/UIKit.h>

typedef void (^JIMControlCallBack)(id sender);

@interface UIControl (ResponseWithBlock)
///注意循环引用
+ (instancetype)controlWithBlock:(JIMControlCallBack)block;

///注意循环引用
+ (instancetype)controlWithBlock:(JIMControlCallBack)block forControlEvents:(UIControlEvents)event;

///注意循环引用
- (void)addActionForEvent:(UIControlEvents)event block:(JIMControlCallBack)block;

///注意循环引用
- (void)addUpInsideAction:(JIMControlCallBack)block;
@end


@interface UIButton (BadgeValue)
@property (nonatomic, strong)UIView *badgeView;
@property (nonatomic, strong)UILabel *badgeLabel;
@property (nonatomic, copy)NSString *badgeValue;
- (void)flipContent;
@end


